package com.antdesignbackend.backend.production.reservation.service;


import com.antdesignbackend.backend.production.reservation.entity.Reservation;
import com.antdesignbackend.backend.production.reservation.entity.entityVo.ReservationVo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * 留种记录
 *
 * @author 不二
 * @email reservation
 * @date 2020-08-25 15:09:50
 */


public interface ReservationService extends IService<Reservation>{
    List<ReservationVo> search(@Param(Constants.WRAPPER) QueryWrapper<ReservationVo> wrapper, Page<ReservationVo> page);
    Integer count(@Param(Constants.WRAPPER) QueryWrapper<ReservationVo> wrapper);

    void insert(Reservation reservation) throws RuntimeException;
    void update(Reservation reservation) throws RuntimeException;
}


